//
//  PlayerSingleton.m
//  BreadTravel
//
//  Created by dllo on 15/12/28.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "PlayerSingleton.h"

@implementation PlayerSingleton

+(instancetype)shareSingleton
{
    static PlayerSingleton *singleton = nil;
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        singleton = [[PlayerSingleton alloc] init];
        [singleton creatPlayer];
    });
    return singleton;
}

-(void)creatPlayer
{

    if (!self.player) {
        self.player = [[STKAudioPlayer alloc] initWithOptions:(STKAudioPlayerOptions){ .flushQueueOnSeek = YES, .enableVolumeMixer = YES, .equalizerBandFrequencies = {50, 100, 200, 400, 800, 1600, 2600, 16000} }];
        
    }

}









@end
